<html>
     <body>流程控制</body>
      <script>
             var num = prompt('输入一个分数：','');
             
             var i = 0;
             while(i < num){
                document.write("hello world! "+i+" <br/>")
                i++;
             }
            
</script>
</html>
   